function object(obj){
    function f(){}
    f.prototype=obj
    return new f()
}
let son4={
    name:'son4'
}
let s=object(son4)

s

console.log(s.__proto__.constructor)